package com.echartsdata.Entityimp;

import com.alibaba.fastjson2.JSONObject;
import com.echartsdata.Mapper.OpinionMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Author: 凉笙℡墨染
 * CreateTime: 2024-09-30
 * 舆论
 */

@Component
public class OpinionMapperimp {
    @Resource
    private OpinionMapper opinionMapper;
    public String get_list() {
        System.out.println("看看舆论数据返回的什么数据"+opinionMapper.get_list());
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("data", opinionMapper.get_list());
        System.out.println("舆论转换后的json数据是"+jsonObject.toString());
        return jsonObject.toString();
    }
}
